package com.yf.entity.course;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;

/**
 * 订单实体
 * 表名 lesson_order
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Nov 07 14:54:16 CST 2018
 */
@Setter
@Getter
public class LessonOrderEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //ID
    private Long id;
    //订单编号
    private String orderNo;
    //下单时间
    private Date orderTime;
    //下单用户
    private Long userId;
    //ENUM-支付类型:'未支付','已支付','代付','支付异常'
    private Integer payStatus;
    //订单备注
    private String info;
    //优惠码
    private String promoCode;
    //订单价格
    private BigDecimal retailPrice;
    //支付价格
    private BigDecimal payPrice;
    //优惠价格
    private BigDecimal price;
    //ENUM-支付方式:'微信','余额'
    private Integer payWay;
    //支付异常原因
    private String payInfo;

    public LessonOrderEntity(){

    }
	
	 public LessonOrderEntity(String orderNo, Date orderTime, Long userId, Integer payStatus, BigDecimal price) {
        this.orderNo = orderNo;
        this.orderTime = orderTime;
        this.userId = userId;
        this.payStatus = payStatus;
        this.price = price;
    }

}
